﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-trasitional.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet"
			href="/static/css/table.css" type="text/css">
		<script type="text/javascript"
			src="/static/javascript/comm/comm.js">
		</script>
		<script type="text/javascript" src="/static/javascript/jquery-1.7.2.js"></script>
		<!--以下3个js库必须按照顺序引入-->
		<!--vue脚本库-->
		<script type="text/javascript"
				src="/static/js/vue-3.2.4.global.js">
			<!--axios脚本库-->
		</script>
		<script type="text/javascript"
				src="/static/js/axios-0.18.0.min.js">
		</script>
		<!--我们自己封装的axios函数库 -->
		<script type="text/javascript"
				src="/static/js/axios-helper.js">
		</script>
		
	</head>

	<body id="app">
		<form method="post" action="../customiz/customizAction!findMajorKind">
			<table width="100%">
				<tr>
					<td>
						<font color="black">您正在做的业务是：人力资源--客户化设置--人力资源档案管理设置--职位分类设置
						</font>
					</td>
				</tr>
				<tr>
					<td align="right">
						<input type="button" value="添加" class="BUTTON_STYLE1"
							onclick="window.location.href='major_kind_add.html';">
					</td>
				</tr>
			</table>
			<table width="100%" border="1" cellpadding=0 cellspacing=1
				bordercolorlight=#848284 bordercolordark=#eeeeee
				class="TABLE_STYLE1">
				<tr>
					<td width="46%" class="TD_STYLE1">
						职位分类编号
					</td>
					<td width="47%" class="TD_STYLE1">
						职位分类名称
					</td>
					<td width="5%" class="TD_STYLE1">
						删除
					</td>
				</tr>
				<tr v-for="item in configMajorKindList" >
					<td class="TD_STYLE2">
						{{item.majorKindId}}
					</td>
					<td class="TD_STYLE2">
						{{item.majorKindName}}
					</td>
					<td class="TD_STYLE2">
						<a href="javascript:void(0)" @click="del(item.mfkid)">删除</a>
					</td>
				</tr>
			</table>
			<p>
				 
		</form>
	</body>
	<script type="module">
		Vue.createApp({
			data(){
				return{
					configMajorKindList:[]
				}
			},
			methods:{
				loadConfigMajorKindList(){
					requestGet("/configMajorKind/queryList").then((data)=>{
						console.info(data);
						this.configMajorKindList=data;
					})
				},
				del(mfkid){
					requestDelete("/configMajorKind/del",{
						mfkid:mfkid
					}).then((data)=>{
						if(data.statusCode==1){
							this.loadConfigMajorKindList();
						}else{
							alert("删除失败");
						}
					})
				}
			},
			created(){
				this.loadConfigMajorKindList();
			}
		}).mount("#app");
	</script>
</html>
